#ifndef HANDLERPATH_H
#define HANDLERPATH_H

#include <QObject>
#include <QGraphicsEllipseItem>
#include <QGraphicsLineItem>
#include "Aria.h"
#include "ArNetworking.h"

class handlerPath : public QObject
{
    Q_OBJECT
public:
    explicit handlerPath(QObject *parent = 0,ArClientBase *client=0);

signals:
    void signal_paint_ellipse(QGraphicsEllipseItem *);
    void signal_paint_line(QGraphicsLineItem *);
    void signal_remove_ellipse(QGraphicsEllipseItem *);
    void signal_remove_line(QGraphicsLineItem *);

private:
    ArClientBase *handledClient;

    std::vector <QPoint *> pathpoints;
    std::vector <QGraphicsLineItem *> pathlines;


    ArFunctor1C<handlerPath,ArNetPacket *> getPathCB;
    //ArFunctor1C<handlerPath,ArNetPacket *> getPathStatusCB;

    void getPath(ArNetPacket *packet);
    //void getPathStatus(ArNetPacket *packet);
};

#endif // HANDLERPATH_H
